home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / Libraries / TurboTCP 2.0.1 / TurboTCP source / TCPCompletionProc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-21  |  1016 b   |  41 lines  |  [TEXT/MPCC]

  1. /*
  2. ** TCPCompletionProc.h
  3. **
  4. **    TurboTCP support library
  5. **    TCP asynchronous call completion procedure
  6. **    68K code resource for PowerPC applications
  7. **
  8. **    Copyright © 1993-94, FrostByte Design / Eric Scouten
  9. **
  10. */
  11.  
  12. #pragma once
  13.  
  14. #include <Types.h>                            // get <ConditionalMacros.h> if available
  15. #if (defined(GENERATINGPOWERPC) || defined(GENERATING68K))
  16. #include <MacTCP.h>                            // Universal Headers 2.0
  17. #else
  18. #include <TCPPB.h>                            // Univ Headers 1.0 or old headers
  19. #endif
  20.  
  21. #if defined(powerc) || defined (__powerc)
  22. #pragma options align=mac68k
  23. #endif
  24.  
  25. struct x_TurboTCPQElem {
  26.     struct QElem*            qLink;            // next item in queue
  27.     short                qType;            // entry type — see asyncQueueType above
  28.     void*                qSelfLink;            // link to whatever object we had
  29. };
  30.  
  31. struct TurboTCPiopb {
  32.     struct TCPiopb            itsParamBlock;        // the TCP parameter block
  33.     QHdr*                itsQueue;            // the queue we’re in
  34.     struct x_TurboTCPQElem    itsQElem;            // the queue entry
  35. };
  36.  
  37. #if defined(powerc) || defined(__powerc)
  38. #pragma options align=reset
  39. #endif
  40.  
  41.